package com.heima.search.service;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.dtos.UserSearchDto;
import com.heima.model.search.pojos.SearchArticleVo;

/**
 * @author xiaquanen
 * @version 1.0
 * @project heima-leadnews
 * @date 2024/7/29 16:26:42
 */
public interface SearchService {
    /**
     * 查询
     *
     * @param dto
     * @return
     */
    ResponseResult search(UserSearchDto dto);

    /**
     * 更新索引库
     *
     * @param searchArticleVo
     */
    void addOrUpdate(SearchArticleVo searchArticleVo);

    /**
     * 删除文档
     *
     * @param id
     */
    void deleteDoc(Long id);

}
